

<!DOCTYPE html>
<html>
<head>
            <link rel="canonical" href="http://blog.csdn.net/e7SFd9w7T0c1W/article/details/78863450"/> 

    <script type="text/javascript">
        var username = "e7SFd9w7T0c1W";var _blogger = username;var blog_address = "/e7sfd9w7t0c1w";var static_host = "http://static.blog.csdn.net";
        var currentUserName = ""; var fileName = '78863450';var commentscount = 0; var islock = false
        window.quickReplyflag = true;
        var totalFloor=0;
                
                 var isBole = false;
                
                         
                 var isDigg = false;
                
                  
             var isExpert=false;
        
                   
        var isAdm=false;
        

    </script>

<meta http-equiv="content-type" content="text/html; charset=utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <script src="http://c.csdnimg.cn/public/common/libs/jquery/jquery-1.9.1.min.js" type="text/javascript"></script>
    <link rel="stylesheet" href="http://c.csdnimg.cn/public/common/libs/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="http://c.csdnimg.cn/public/static/css/avatar.css">
    <link type="text/css" rel="stylesheet" href="http://static.blog.csdn.net/scripts/SyntaxHighlighter/styles/default.css" />
    <link rel="stylesheet" href="http://static.blog.csdn.net/Skin/skin3-template/css/style.css?v=2017.044">
    <link rel="stylesheet" href="http://c.csdnimg.cn/public/common/toolbar/content_toolbar_css/content_toolbar.css?v=5.00.37">
    
	<script src="//static.blog.csdn.net/public/switchHome/switchHome.js?v=2017.044"></script>	
	
    <script type="text/javascript" src="http://static.blog.csdn.net/Skin/skin3-template/fonts/iconfont.js"></script>
    <script src="//csdnimg.cn/rabbit/exposure-click/main.js?v1.15.23"></script>
    <script type="text/javascript" src="http://c.csdnimg.cn/pubfooter/js/tracking_for_recommend.js?v=0911" charset="utf-8"></script>
    <script type="text/javascript" src="http://csdnimg.cn/pubfooter/js/tracking.js" charset="utf-8"></script>
    <script type="text/javascript" src="http://static.blog.csdn.net/scripts/cnick.js" charset="utf-8"></script>
 
    <link rel="stylesheet" href="http://static.blog.csdn.net/code/prettify.css" />
    <script type="text/javascript" src="http://static.blog.csdn.net/code/prettify.js"></script>
<script src="http://dup.baidustatic.com/js/ds.js"></script>
    <script type="text/javascript">

        // Traffic Stats of the entire Web site By baidu
        var _hmt = _hmt || [];
        (function() {
            var hm = document.createElement("script");
            hm.src = "https://hm.baidu.com/hm.js?6bcd52f51e9b3dce32bec4a3997715ac";
            var s = document.getElementsByTagName("script")[0];
            s.parentNode.insertBefore(hm, s);
        })();
        // Traffic Stats of the entire Web site By baidu end



    </script>
    <meta name="description" content="来自：36krhttp://36kr.com/p/5104870.html原文：https://medium.freecodecamp.org/software-engineering-interviews-744380f4f2af我刚刚在硅谷的科技公司完成了7次现场面试，我收到了来自Facebook的软件工程师的职位Offer。下面分享一下我是怎么为面试做准备的，以及我在这个过程中学到的东西。（" />
    <meta name="keywords" content="" />
    <meta http-equiv="Cache-Control" content="no-siteapp" /><link rel="alternate" media="handheld" href="#" />
    <meta name="shenma-site-verification" content="5a59773ab8077d4a62bf469ab966a63b_1497598848">


    <title>刚收到了Facebook的Offer，我是这样为面试做准备的？ - CSDN博客</title>
</head>
<body>
<script id="toolbar-tpl-scriptId" prod="download" skin="black" src="http://c.csdnimg.cn/public/common/toolbar/js/content_toolbar.js?v=5.00.37" type="text/javascript" domain="http://blog.csdn.net"></script>

<div class="container clearfix">
    <main>
        <article>
            <h1 class="csdn_top">刚收到了Facebook的Offer，我是这样为面试做准备的？</h1>
            <div class="article_bar clearfix">
                <div class="artical_tag">
                    <span class="original">转载</span>
                    <span class="time">2017年12月15日 00:00:00</span>
                </div>
				<ul class="article_tags clearfix csdn-tracking-statistics" data-mod="popu_377">
					<li class="tit">标签：</li>
					
				</ul>
                <ul class="right_bar">
                    <li><button class="btn-noborder"><i class="icon iconfont icon-read"></i><span class="txt">539</span></button></li>
                    <!--<li><button class="btn-noborder"><i class="icon iconfont icon-dashang-"></i><span class="txt">0</span></button></li>-->

                    <li class="edit">
                        <a class="btn-noborder" href="" >
                            <i class="icon iconfont icon-bianji"></i><span class="txt">编辑</span>
                        </a>
                    </li>
                    <li class="del">
                        <a class="btn-noborder" onclick="javascript:deleteArticle(fileName);return false;">
                            <i class="icon iconfont icon-shanchu"></i><span class="txt">删除</span>
                        </a>
                    </li>
                </ul>
            </div>
            <div id="article_content" class="article_content csdn-tracking-statistics" data-mod="popu_519" data-dsm="post">
                <html>
  <body>
    <div class="rich_media_content " id="js_content">
                    

                    

                    
                    
                    <blockquote><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><br/></p><blockquote style="max-width: 100%;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 14px;box-sizing: border-box !important;word-wrap: break-word !important;">来自：36kr</span></blockquote><blockquote style="max-width: 100%;color: rgb(62, 62, 62);"><p style="max-width: 100%;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;"><span style="max-width: 100%;font-size: 14px;box-sizing: border-box !important;word-wrap: break-word !important;">http://36kr.com/p/5104870.html</span></p><p style="max-width: 100%;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;"><span style="max-width: 100%;font-size: 14px;box-sizing: border-box !important;word-wrap: break-word !important;">原文：https://medium.freecodecamp.org/software-engineering-interviews-744380f4f2af</span></p></blockquote><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;"><br/></span><br/></p></blockquote><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;"/></p><p><img data-s="300,640" data-type="jpeg" data-src="http://ss.csdn.net/p?https://mmbiz.qpic.cn/mmbiz_jpg/GFM7ZUkRhsDLs1fibgPf7DkORkPDQLiaBxfOfuIed82mB792nicpdbSGc8H0q5GicGuhibIC26JhsL4ZH1iaVyXQSxOA/0?wx_fmt=jpeg" data-copyright="0" style="width: auto !important; height: auto !important; visibility: visible !important;" class=" " data-ratio="0.6854545454545454" data-w="550" src="http://ss.csdn.net/p?http://mmbiz.qpic.cn/mmbiz_jpg/GFM7ZUkRhsDLs1fibgPf7DkORkPDQLiaBxfOfuIed82mB792nicpdbSGc8H0q5GicGuhibIC26JhsL4ZH1iaVyXQSxOA/640?wx_fmt=jpeg&amp;wxfrom=5&amp;wx_lazy=1" data-fail="0"/></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;"/><br/></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;">我刚刚在硅谷的科技公司完成了7次现场面试，我收到了来自Facebook的软件工程师的职位Offer。下面分享一下我是怎么为面试做准备的，以及我在这个过程中学到的东西。<br style="max-width: 100%;box-sizing: border-box;word-wrap: break-word !important;"/></span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;"/></span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;box-sizing: border-box;font-weight: 600;font-size: 15px;word-wrap: break-word !important;">（一）为了能到硅谷工作，我已准备多年<br style="max-width: 100%;box-sizing: border-box;word-wrap: break-word !important;"/></span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;box-sizing: border-box;font-weight: 600;font-size: 15px;word-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;"/></span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;">当我还在澳大利亚的大学学习计算机科学的时候，我总是想象着未来能成为硅谷的一名软件工程师。我希望自己未来能够到科技行业的创新中心硅谷去工作。这个目标让我充满了动力，它也让我能够更加专注地准备面试。</span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;"/></span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;">为了更好地学习，我辞去了在墨尔本一家非常棒的公司的首席iOS工程师的工作，然后回到了我的家乡城市珀斯。在珀斯，我开始为硅谷公司的面试做准备。我知道面试准备将是非常困难和艰巨的一项任务。</span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;"/></span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;">如果你告诉一群软件工程师技术面试的流程，其中的很多工程师都会对常见的面试方法持反对意见。很多争论来自于这样一个观点：即在白板上解决算法问题实际上并无法实际代表软件工程师是否能在实际工作中完成日常任务。</span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;"/></span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;">我在这篇文章中不会去讨论这个话题。相反，我将从应聘者的角度来探讨不同类型的面试实践。同时，我还会分享我自己在面试过程中学到的东西。</span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;"/></span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;box-sizing: border-box;font-weight: 600;font-size: 15px;word-wrap: break-word !important;">（二）面试是一种技能</span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;box-sizing: border-box;font-weight: 600;font-size: 15px;word-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;"/></span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;">在我准备的面试的过程中，我始终知道面试是非常具有挑战性的。但是直到我被第一次面试折磨之后，我才知道面试是那么困难。</span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;"/></span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;">在面试前，我曾使用过一些付费和免费服务，这些服务可以让那些拥有行业经验的人通过电话对应聘者进行代码和白板模拟面试。这种面试模拟练习对我应对真实面试中所面对的压力是非常有帮助的。但是后来我逐渐发现，模拟面试练习只相当于真实面试内容的很小一部分。</span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;"/></span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;">我的建议是，在你没有积累一些模拟或实战面试经验之前，不要面试你梦寐以求的工作岗位。面试中紧张的情绪会让你难以承受，只有通过不断练习才能克服这种紧张的情绪。</span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;"/></span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;">和生活中的其他很多事情一样，不断练习可以增强你的自信。</span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;"/></span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;box-sizing: border-box;font-weight: 600;font-size: 15px;word-wrap: break-word !important;">（三）我经历的几种不同类型的面试</span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;box-sizing: border-box;font-weight: 600;font-size: 15px;word-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;"/></span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;">如果你在最开始的电话面试中表现得足够好，你就有机会参加现场面试，面试可能会持续整整几天的时间。每次面试通常会持续4到6个小时，具体时间取决于你所面试的公司。<br style="max-width: 100%;box-sizing: border-box;word-wrap: break-word !important;"/></span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;"/></span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;">在我自己在硅谷面试的过程中，我总共进行了7次现场面试，这让我对目前的面试现状有了一个独特的看待视角。<br style="max-width: 100%;box-sizing: border-box;word-wrap: break-word !important;"/></span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;"/></span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;">通常情况下，现场面试会覆盖三个主要面试主题：算法、架构设计和行为，这些正是我专门研究和精心准备过的面试内容。然而，也有一些公司似乎不按常理出牌，他们会扩大的面试内容范围，以考察应聘者的更多实用技能。</span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;"/></span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;">下面分享一下我经历过的几种面试类型：<br style="max-width: 100%;box-sizing: border-box;word-wrap: break-word !important;"/></span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;"/></span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;box-sizing: border-box;font-weight: 600;font-size: 15px;word-wrap: break-word !important;">（1）算法面试<br style="max-width: 100%;box-sizing: border-box;word-wrap: break-word !important;"/></span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;box-sizing: border-box;font-weight: 600;font-size: 15px;word-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;"/></span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;">这是最常见的面试类型。面试官会要求你在白板上解决一个问题，并据此来评估你对数据结构、排序算法、递归、时间/空间复杂度分析、模式和极端案例识别等方面知识的掌握情况。在这样的面试中，你通常会提出一个蛮力的解决方案，然后试着改进这个解决方案，并且讨论权衡不同的解决方案。<br style="max-width: 100%;box-sizing: border-box;word-wrap: break-word !important;"/></span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;"/></span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;">这类面试是我准备最充分的面试类型，因为连续6周时间，我每一天都会练习在一个廉价的悬挂白板上解决算法问题，分析它们的时间/空间的复杂性，真正理解所写的每一行代码带来的结果。<br style="max-width: 100%;box-sizing: border-box;word-wrap: break-word !important;"/></span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;"/></span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;">就我个人而言，我非常喜欢白板算法，因为我不需要担心编写可编译的语法，这让我能够专注于解决手头要解决的问题。其他人可能不喜欢在白板上进行算法面试，对于这些人，我要说的是，如果能坚持练习，这可能会改变他们的想法。<br style="max-width: 100%;box-sizing: border-box;word-wrap: break-word !important;"/></span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;"/></span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;box-sizing: border-box;font-weight: 600;font-size: 15px;word-wrap: break-word !important;">（2）架构设计面试</span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;box-sizing: border-box;font-weight: 600;font-size: 15px;word-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;"/></span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;">这是一种非常有趣的面试类型，也是被我严重低估的一种面试。面试官会要求你在白板上设计一个系统，比如停车场的售票系统、聊天通讯系统、推特信息流系统以及其他常见的系统。</span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;"/></span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;">通过这类面试，面试官考察的是，在你拿到一个宽泛的概念之后，你如何设计一个能够满足所有需求和限制性条件的系统。在这个过程中，需要应聘者提出正确的问题，因为这些问题将会定义需求和限制性条件。这类面试过程更多的是一种对话，你需要在这个过程中画一些图表，甚至是阶级结构。所有这些都是一种高层次的交流，所以你不需要编写任何实际的代码。</span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;"/></span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;">当然，你应该对交流内容进行引导，从而能让面试官了解你在系统工作方式方面的知识。如果你是一名后端工程师，你无需探讨客户端应用程序机制的细节，除非你之前在那个领域积累过一定的专业技能和知识。我是一名iOS工程师，所以我在这类面试中会主要谈到架构模式、功能的模块化、设计模式，而不是谈论如何扩展API端点之类的内容。</span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;"/></span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;box-sizing: border-box;font-weight: 600;font-size: 15px;word-wrap: break-word !important;">（3）行为面试</span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;box-sizing: border-box;font-weight: 600;font-size: 15px;word-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;"/></span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;">面试官会问你一些关于你自己的问题以及你如何处理一些特定的情况。准备这类面试并没有准备其它几类面试那么难，但是它需要你自己做很多自我反省。</span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;"/></span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;">通常会问到的问题包括：<br style="max-width: 100%;box-sizing: border-box;word-wrap: break-word !important;"/></span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;"/></span></p><ul class=" list-paddingleft-2" style=""><li><p style="max-width: 100%;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;">你是如何对待失败的？</span></p></li><li><p style="max-width: 100%;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;">你认为你自己最大的弱点是什么？</span></p></li><li><p style="max-width: 100%;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;">你如何解决冲突？</span></p></li><li><p style="max-width: 100%;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;">如果有机会可以重来，你现在的做法会与以前的有何不同呢？</span></p></li></ul><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><br style="max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;"/></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;">我觉得很难把这类面试搞砸，但我发现很多人确实在这类面试中出了问题。他们试图把自己的强项伪装成弱点，他们回答问题时只说那些他们认为面试官会想要听到的答案，甚至把失败项目的责任转嫁到别人身上。类似下面这样：</span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;"/></span></p><ul class=" list-paddingleft-2" style=""><li><p style="max-width: 100%;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;">“我的弱点就是我太专注了。”<br style="max-width: 100%;box-sizing: border-box;word-wrap: break-word !important;"/></span></p></li><li><p style="max-width: 100%;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;">“这个项目失败主要怪Jerry，他把这个项目中的大部分工作都搞砸了。”</span></p></li></ul><ul class=" list-paddingleft-2" style="list-style-type: none;"><li><p style="max-width: 100%;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;"/></p></li></ul><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;">要知道，这些面试官都是经过严格训练过的专业人士，他们能轻易辨别那些不称职的人，并且对应聘者所说的废话谎言非常敏感。他们能快速将那些不合格的候选人Pass掉。在面试过程中，要真诚，不要耍小聪明，要表现出对你的工作的热情，承认你的缺点，并表现出有改进缺点的主动性和强烈意愿，只有这样，你才能得到面试官的青睐。</span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;"/></span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;box-sizing: border-box;font-weight: 600;font-size: 15px;word-wrap: break-word !important;">（4）文化匹配性</span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;box-sizing: border-box;font-weight: 600;font-size: 15px;word-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;"/></span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;">这通常是与行为面试结合在一起考察的，这主要考察你是否符合公司的价值观。例如，Facebook鼓励黑客似的文化，鼓励员工大胆尝试新想法，并通过试验对想法进行测试，而不是害怕打破陈规，也就是所谓的“Move fast and break things”。Airbnb希望创造一个让人们在任何地方都能找到归属感的世界，所以他们通常会寻找那些具有良好好客技能的人才。</span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;"/></span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;">很多大型科技公司都非常重视企业文化，并根据应聘者是否符合公司价值观来决定是否录用他们。如果你在这样的一家公司里面试，你需要想办法了解这家公司的价值观，并找到你自己那些与公司文化相契合的过往经历，并向面试官展示出这一点，这一点非常重要。</span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;"/></span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;box-sizing: border-box;font-weight: 600;font-size: 15px;word-wrap: break-word !important;">（5）结对编程</span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;box-sizing: border-box;font-weight: 600;font-size: 15px;word-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;"/></span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;">一种非常有趣的面试类型是，让你和另外一位工程师在一个设置好的编程环境中结对编程，这和实际工作场景非常类似。你会被分配一个基本的任务，任务中列出了你必须完成的一系列需求列表。在你完成每一个任务后，面试官会要求你实施更多的功能，直到到了规定的时间为止。在这个过程中，你可以自由使用你想使用的任何资源，如Stack Overflow或在线文档。</span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;"/></span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;">我发现，在这样的面试中，很多候选人能否通过考察主要依赖于他们真实世界的开发经验。与白板面试不同，在这类面试中需要你写出语法正确的代码，因此你应该彻底了解你的编程语言和环境，因为你肯定不希望在编程面试过程中花太多时间去在网上或文档里搜索答案。</span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;"/></span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;">在我之前的工作中，在我在做一项任务时，我会写干净的代码，然后等我觉得任务完成之后再进行优化。这种工作方式对这种类型的面试是不利的。</span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;"/></span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;box-sizing: border-box;font-weight: 600;font-size: 15px;word-wrap: break-word !important;">（6）发现并修复Bug</span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;box-sizing: border-box;font-weight: 600;font-size: 15px;word-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;"/></span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;">作为工程师，我们所做的很多工作都是围绕着找到和修复那些我们从不同渠道搜集到的bug。在这类面试中，你会得到一个需要你去找到和修复的bug列表，在这个过程中，你还需要识别其他可能存在问题的代码。</span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;"/></span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;">我自己只经历过一次这样的面试，我觉得这类面试真的很难让人做好准备，特别对那些经验所有欠缺的初级工程师更是如此。每个编码环境都有各自的小怪癖和细微差别，我所做的很多bug修复工作都来自于以前的IDE（集成开发环境）的经验以及我在过去多年时间里积累的相关框架。</span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;"/></span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;box-sizing: border-box;font-weight: 600;font-size: 15px;word-wrap: break-word !important;">（7）考察专业领域知识<br style="max-width: 100%;box-sizing: border-box;word-wrap: break-word !important;"/></span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;box-sizing: border-box;font-weight: 600;font-size: 15px;word-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;"/></span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;">在我们今天看到的大多数通用语言中，编程基本上是相同的。如果你知道一种编程语言的面向对象编程，那么这些技能多半能够转移到另一种编程语言里。但是，这类面试的考察技是不能在语言或框架之间相互转换的。面试官将会在特定的环境下考察你在有关API、内存管理、功能和局限等专业领域知识的掌握情况。</span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;"/></span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;">对于这类主题的面试，练习是很具挑战性的。和上文中说过的发现并修复bug面试类似，我觉得这类面试问题的答案大都来自于过往的经验。根据你所申请的职位的级别的不同，面试官评估你的答案的标准会有所不同。例如，如果你申请的是一个初级职位，不知道为什么一个API的结构是特定的，那么面试官会在这方面做出让步，不会对你要求太高。然而，如果你申请的是一个高级职位，面试官对你的要求会更高，这时如果你不知道这个问题的答案的话，这就会给面试官留下非常不好的印象。</span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;"/></span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;box-sizing: border-box;font-weight: 600;font-size: 15px;word-wrap: break-word !important;">（8）对操作系统的了解</span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;box-sizing: border-box;font-weight: 600;font-size: 15px;word-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;"/></span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;">根据你所应聘的职位或团队的不同，你可能会有一个专门的操作系统方面的面试。在这个面试中，你会被问到一些问题，面试官通过这些问题对你对计算机操作系统机制的理解进行评估。说实话，这个面试有点让我措手不及。操作系统是我早年在大学里学过的东西，但是后来慢慢都淡忘了。</span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;"/></span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;box-sizing: border-box;font-weight: 600;font-size: 15px;word-wrap: break-word !important;">（四）你该如何准备？<br style="max-width: 100%;box-sizing: border-box;word-wrap: break-word !important;"/></span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;box-sizing: border-box;font-weight: 600;font-size: 15px;word-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;"/></span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;">正如我在上文中说的那样，面试本身其实就是一种技能。即使你在日常工作中已经是一名优秀的程序员，或者在你在学校的成绩非常优异，但是在面试会议室里，你的这些技能并不能按1:1的比例方式转化为面试技能。坚持、重复地做面试准备和练习将在很大程度上决定你的面试结果。<br style="max-width: 100%;box-sizing: border-box;word-wrap: break-word !important;"/></span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;"/></span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;box-sizing: border-box;font-weight: 600;font-size: 15px;word-wrap: break-word !important;">（1）至少需要掌握这些知识</span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;box-sizing: border-box;font-weight: 600;font-size: 15px;word-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;"/></span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;">如果有人问我，我觉得应该关注哪些方面，我建议以下几点：<br style="max-width: 100%;box-sizing: border-box;word-wrap: break-word !important;"/></span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;"/></span></p><ul class=" list-paddingleft-2" style=""><li><p style="max-width: 100%;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;">首先学习在纸上和白板上手写代码，然后把它放到一个IDE（集成开发环境）中，以便语法高亮显示，这应该成为你的第二天性。</span></p></li><li><p style="max-width: 100%;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;">对数据结构要有深入的了解，包括他们的长处和弱点。</span></p></li><li><p style="max-width: 100%;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;">完全理解大O符号的时间和空间复杂性，这将与你的算法和排序问题完美地配对。</span></p></li><li><p style="max-width: 100%;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;">掌握所有主要的排序算法，因为时间和空间的复杂性有可能破坏你想要解决的算法的最佳解决方案。</span></p></li></ul><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><br style="max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;"/></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;box-sizing: border-box;font-size: 15px;font-weight: 600;word-wrap: break-word !important;">（2）何时开始<br style="max-width: 100%;box-sizing: border-box;word-wrap: break-word !important;"/></span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;box-sizing: border-box;font-size: 15px;font-weight: 600;word-wrap: break-word !important;"><br style="max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;"/></span></p><p style="max-width: 100%;min-height: 1em;color: rgb(62, 62, 62);"><span style="max-width: 100%;font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;">根据你自己的时间表，越早开始越好。我面试过的很多公司都有一个12个月的冷却期，面试未通过的应聘者需要等到12个月后才能重新申请公司的职位。反过来说，如果你知道你无法在一年时间内准备好这个面试，,你不妨现在开始这个面试流程，大概感受一下面试流程具体是怎样的，到时真正面试的时候就不会那么害怕了。</span></p><p><br/></p>
                </div>
  </body>
</html>
<link rel="stylesheet" href="http://static.blog.csdn.net/public/res-min/markdown_views.css?v=2.0" />
            </div>
        </article>
        <div class="readall_box csdn-tracking-statistics" data-mod="popu_376">
			<div class="read_more_mask"></div>
            <a class="btn btn-large btn-gray-fred read_more_btn" target="_self">阅读全文</a>
        </div>
        <div class="article_copyright">
            
        </div>
        <!--  <div class="reward_box">
            <div class="tit">
              <button class="btn_reward"><i class="icon iconfont icon-dashang-"></i></button>
            </div>
            <dl class="clearfix">
              <dt><a href="#" target="_blank">近期打赏</a></dt>
              <dd><a href="#" target="_blank"><img src="http://avatar.csdn.net/9/3/2/2_nzf_001.jpg" alt="聂兆芳" title="聂兆芳"></a></dd>
              <dd><a href="#" target="_blank"><img src="http://avatar.csdn.net/9/3/2/2_nzf_001.jpg" alt="聂兆芳" title="聂兆芳"></a></dd>
              <dd><a href="#" target="_blank"><img src="http://avatar.csdn.net/9/3/2/2_nzf_001.jpg" alt="聂兆芳" title="聂兆芳"></a></dd>
              <dd><a href="#" target="_blank"><img src="http://avatar.csdn.net/9/3/2/2_nzf_001.jpg" alt="聂兆芳" title="聂兆芳"></a></dd>
              <dd><a href="#" target="_blank"><img src="http://avatar.csdn.net/9/3/2/2_nzf_001.jpg" alt="聂兆芳" title="聂兆芳"></a></dd>
            </dl>
          </div>-->

        <ul class="article_collect clearfix csdn-tracking-statistics"  data-mod="popu_378">
            <li class="tit">本文已收录于以下专栏：</li>
            
        </ul>
        <div class="comment_box clearfix">
            <div id="comment_form">
                <div id="commentsbmitarear">
                    <!-- <h6><span>0</span>条评论</h6> -->
           <!--          <dl class="clearfix" id="commentbox">
                        <dt>
                            <a href="http://my.csdn.net/"><img src="" ></a>
                        </dt>
                        <dd>
                            <a href="http://my.csdn.net/" target="_blank"></a>
                        </dd>
                        <dd class="txt_tip"><span id="tip_comment" class="tip"></span></dd>
                    </dl> -->
                    <div class="comment_area clearfix">
						<div class="userimg"><a href="http://my.csdn.net/"><img src=""></a></div>
                        <form action="/e7SFd9w7T0c1W/comment/submit?id=78863450" method="post" onsubmit="return subform(this);" id="commentform">
                            <textarea class="comment_content" name="comment_content" id="comment_content" placeholder="发表你的评论"></textarea>
                            <div class="bot_bar clearfix">
                                <div id="ubbtools" class="add_code">
                                    <a href="#insertcode" code="code" target="_self"><i class="icon iconfont icon-daima"></i></a>
                                </div>

                                <input type="hidden" id="comment_replyId" name="comment_replyId">
                                <input type="hidden" id="comment_userId" name="comment_userId" value="">
                                <input type="hidden" id="commentId" name="commentId" value="">
                                <input type="submit" class="btn btn-redborder" value="发表评论">
								<span id="tip_comment" class="tip">
                                <div style="display: none;" class="csdn-tracking-statistics" data-mod="popu_384"><a href="#" target="_blank" class="comment_area_btn">发表评论</a></div>

                                <div id="lang_list" code="code">
                                    <a href="#html" style="width:95px;" class="long_name" target="_self">HTML/XML</a>
                                    <a href="#objc" style="width:95px;" class="long_name" target="_self">objective-c</a>
                                    <a href="#delphi" style="width:58px;" class="zhong_name" target="_self">Delphi</a>
                                    <a href="#ruby" class="zhong_name" target="_self">Ruby</a>
                                    <a href="#php" target="_self">PHP</a>
                                    <a href="#csharp" class="duan_name" target="_self">C#</a>
                                    <a style=" border-right: none;" href="#cpp" class="duan_name" target="_self">C++</a>
                                    <a style=" border-bottom:none;width:95px;" href="#javascript" class="long_name" target="_self">JavaScript</a>
                                    <a style=" border-bottom:none;width:95px;" href="#vb" class="long_name" target="_self">Visual Basic</a>
                                    <a style=" border-bottom:none;" href="#python" class="zhong_name" target="_self">Python</a>
                                    <a style=" border-bottom:none;" href="#java" class="zhong_name" target="_self">Java</a>
                                    <a style="border-bottom:none;" href="#css" class="duan_name" target="_self">CSS</a>
                                    <a style="border-bottom:none;" href="#sql" class="duan_name" target="_self">SQL</a>
                                    <a style="border:none; " href="#plain" class="duan_name" target="_self">其它</a>
                                    <span class="arrb"></span>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>

        <div class="comment_li_outbox">
            <div id="comment_list"></div>
        </div>

        <div class="more_comment">
            <div id="comment_bar" class="trackgin-ad" data-mod="popu_385"></div>
        </div>

        <h3 class="recommend_tit">相关文章推荐</h3>
        <div class="recommend_list clearfix">
            
            <dl class="clearfix csdn-tracking-statistics" data-mod="popu_387" data-poputype="feed"  data-feed-show="false"  data-dsm="post">
                <dd>
                    <h2><a href="/y0q2t57s/article/details/78763877"  target="_blank" strategy="BlogCommendFromCsdn_0">刚收到了Facebook的Offer，我是这样为面试做准备的</a></h2>
                    <div class="summary">
                        我刚刚在硅谷的科技公司完成了7次现场面试，我收到了来自Facebook的软件工程师的职位Offer。下面分享一下我是怎么为面试做准备的，以及我在这个过程中学到的东西。（一）为了能到硅谷工作，我已准备多...
                    </div>
                    <ul>
                        <li class="avatar_img"><a href="http://blog.csdn.net/Y0Q2T57s" target="_blank" strategy="BlogCommendFromCsdn_0"><img src="http://avatar.csdn.net/4/2/E/2_y0q2t57s.jpg" alt="Y0Q2T57s" title="Y0Q2T57s"></a></li>
                        <li class="user_name"><a href="http://blog.csdn.net/Y0Q2T57s">Y0Q2T57s</a></li>
                        <li class="time">2017-11-30 00:00</li>
                        <li class="visited_num"><i class="icon iconfont icon-read"></i><span>77</span></li>
                    </ul>
                </dd>
            </dl>
            
            <dl class="clearfix csdn-tracking-statistics" data-mod="popu_387" data-poputype="feed"  data-feed-show="false"  data-dsm="post">
                <dd>
                    <h2><a href="/uzv80px5v412ne/article/details/78758247"  target="_blank" strategy="BlogCommendFromCsdn_1">刚收到了Facebook的Offer，我是这样为面试做准备的？</a></h2>
                    <div class="summary">
                        来自：36kr

http://36kr.com/p/5104870.html
原文：https://medium.freecodecamp.org/software-engineering-i...
                    </div>
                    <ul>
                        <li class="avatar_img"><a href="http://blog.csdn.net/UzV80PX5V412NE" target="_blank" strategy="BlogCommendFromCsdn_1"><img src="http://avatar.csdn.net/1/0/D/2_uzv80px5v412ne.jpg" alt="UzV80PX5V412NE" title="UzV80PX5V412NE"></a></li>
                        <li class="user_name"><a href="http://blog.csdn.net/UzV80PX5V412NE">UzV80PX5V412NE</a></li>
                        <li class="time">2017-12-08 00:00</li>
                        <li class="visited_num"><i class="icon iconfont icon-read"></i><span>95</span></li>
                    </ul>
                </dd>
            </dl>
            
            <!--dl class="clearfix csdn-tracking-statistics" data-mod="popu_393">
                <dt><a href="http://edu.csdn.net/huiyiCourse/series_detail/64?utm_source=blog10" target="_blank"><img class="maxwidth" src="http://img.blog.csdn.net/20170928113144608" alt="" title=""></a></dt>
                <dd>
                    <div class="summary">
                        <h2><a href='http://edu.csdn.net/topic/python1?utm_source=blog10' target='_blank'>伤心啊！年度热门编程语言排行榜出来了...</a></h2>  <div class="summary">近期，IEEE Spectrum 发布了第四届顶级编程语言交互排行榜。结合 10 个线上数据源的 12 个标准，对 48 种语言进行了排行！此外，七牛云许式伟曾说过Go语言会取代Java...气氛... </div> 
                    </div>
                </dd>
            </dl-->
	<script>
		(function() {
		    var s = "_" + Math.random().toString(36).slice(2);
		    document.write('<div id="' + s + '"></div>');
		    (window.slotbydup=window.slotbydup || []).push({
			id: '4765209',
			container: s,
			size: '808,120',
			display: 'inlay-fix'
		    });
		})();
	</script>
            
            <dl class="clearfix csdn-tracking-statistics" data-mod="popu_387" data-poputype="feed"  data-feed-show="false"  data-dsm="post">
                <dd>
                    <h2><a href="/ttu1evldelfq5btqik/article/details/78763328"  target="_blank" strategy="BlogCommendFromCsdn_2">刚收到了Facebook的Offer，我是这样为面试做准备的？</a></h2>
                    <div class="summary">
                        来自：36krhttp://36kr.com/p/5104870.html原文：https://medium.freecodecamp.org/software-engineering-intervi...
                    </div>
                    <ul>
                        <li class="avatar_img"><a href="http://blog.csdn.net/tTU1EvLDeLFq5btqiK" target="_blank" strategy="BlogCommendFromCsdn_2"><img src="http://avatar.csdn.net/6/F/5/2_ttu1evldelfq5btqik.jpg" alt="tTU1EvLDeLFq5btqiK" title="tTU1EvLDeLFq5btqiK"></a></li>
                        <li class="user_name"><a href="http://blog.csdn.net/tTU1EvLDeLFq5btqiK">tTU1EvLDeLFq5btqiK</a></li>
                        <li class="time">2017-12-09 00:00</li>
                        <li class="visited_num"><i class="icon iconfont icon-read"></i><span>136</span></li>
                    </ul>
                </dd>
            </dl>
            
            <dl class="clearfix csdn-tracking-statistics" data-mod="popu_387" data-poputype="feed"  data-feed-show="false"  data-dsm="post">
                <dd>
                    <h2><a href="/p5deyt322jacs/article/details/78708338"  target="_blank" strategy="BlogCommendFromCsdn_3">刚收到了Facebook的Offer，我是这样为面试做准备的</a></h2>
                    <div class="summary">
                        （点击上方公众号，可快速关注）



英文：Andy Hope，译文：36氪/郝鹏程

http://36kr.com/p/5104870.html





我刚刚在硅谷的科...
                    </div>
                    <ul>
                        <li class="avatar_img"><a href="http://blog.csdn.net/P5dEyT322JACS" target="_blank" strategy="BlogCommendFromCsdn_3"><img src="http://avatar.csdn.net/E/4/9/2_p5deyt322jacs.jpg" alt="P5dEyT322JACS" title="P5dEyT322JACS"></a></li>
                        <li class="user_name"><a href="http://blog.csdn.net/P5dEyT322JACS">P5dEyT322JACS</a></li>
                        <li class="time">2017-12-03 00:00</li>
                        <li class="visited_num"><i class="icon iconfont icon-read"></i><span>220</span></li>
                    </ul>
                </dd>
            </dl>
            <!-- 广告位：PC端-博客详情通栏7（feed流）-808*120 --><script> (function() {    var s = "_" + Math.random().toString(36).slice(2);   document.write('<div id="' + s + '"></div>');    (window.slotbydup=window.slotbydup || []).push({        id: '4983339',       container: s,        size: '808,120',        display: 'inlay-fix'    }); })();  </script>
            <dl class="clearfix csdn-tracking-statistics" data-mod="popu_387" data-poputype="feed"  data-feed-show="false"  data-dsm="post">
                <dd>
                    <h2><a href="/dp29sym41zygndvf/article/details/78764052"  target="_blank" strategy="BlogCommendFromCsdn_4">想Facebook Offer，可以这样为面试做准备！</a></h2>
                    <div class="summary">
                        英文：Andy Hope，译文：36氪/郝鹏程

http://36kr.com/p/5104870.html





我刚刚在硅谷的科技公司完成了7次现场面试，我收到了来自Face...
                    </div>
                    <ul>
                        <li class="avatar_img"><a href="http://blog.csdn.net/DP29syM41zyGndVF" target="_blank" strategy="BlogCommendFromCsdn_4"><img src="http://avatar.csdn.net/D/3/E/2_dp29sym41zygndvf.jpg" alt="DP29syM41zyGndVF" title="DP29syM41zyGndVF"></a></li>
                        <li class="user_name"><a href="http://blog.csdn.net/DP29syM41zyGndVF">DP29syM41zyGndVF</a></li>
                        <li class="time">2017-12-04 00:00</li>
                        <li class="visited_num"><i class="icon iconfont icon-read"></i><span>61</span></li>
                    </ul>
                </dd>
            </dl>
            
            <dl class="clearfix csdn-tracking-statistics" data-mod="popu_387" data-poputype="feed"  data-feed-show="false"  data-dsm="post">
                <dd>
                    <h2><a href="/yu422560654/article/details/7467566"  target="_blank" strategy="BlogCommendFromCsdn_5">每天一道面试题，为今年找工作早做准备！笨鸟先飞，哈哈(2012年4月篇)</a></h2>
                    <div class="summary">
                        1、百度面试题：用C语言将输入的字符串在原串上倒序
用C语言实现一个revert函数，它的功能是将输入的字符串在原串上倒序后返回。


void revert(char* str) {
  ...
                    </div>
                    <ul>
                        <li class="avatar_img"><a href="http://blog.csdn.net/yu422560654" target="_blank" strategy="BlogCommendFromCsdn_5"><img src="http://avatar.csdn.net/8/5/F/2_yu422560654.jpg" alt="yu422560654" title="yu422560654"></a></li>
                        <li class="user_name"><a href="http://blog.csdn.net/yu422560654">yu422560654</a></li>
                        <li class="time">2012-04-16 22:14</li>
                        <li class="visited_num"><i class="icon iconfont icon-read"></i><span>2625</span></li>
                    </ul>
                </dd>
            </dl>
            
            <dl class="clearfix csdn-tracking-statistics" data-mod="popu_387" data-poputype="feed"  data-feed-show="false"  data-dsm="post">
                <dd>
                    <h2><a href="/qq_29377507/article/details/75676356"  target="_blank" strategy="BlogCommendFromCsdn_6">2017年7月22日,周结(二十二)，增加Service存活的几率、多线程最佳实践、Android各版本特性、垃圾回收机制(为面试做准备)</a></h2>
                    <div class="summary">
                        怎么保证service不被杀死


方法一：
onStartCommand中返回START_STICKY，如果内存不足被杀死，那么等内存足够时统会自动重启Service；
方法二：
提升service...
                    </div>
                    <ul>
                        <li class="avatar_img"><a href="http://blog.csdn.net/qq_29377507" target="_blank" strategy="BlogCommendFromCsdn_6"><img src="http://avatar.csdn.net/1/C/9/2_qq_29377507.jpg" alt="qq_29377507" title="qq_29377507"></a></li>
                        <li class="user_name"><a href="http://blog.csdn.net/qq_29377507">qq_29377507</a></li>
                        <li class="time">2017-07-22 08:43</li>
                        <li class="visited_num"><i class="icon iconfont icon-read"></i><span>146</span></li>
                    </ul>
                </dd>
            </dl>
            
            <dl class="clearfix csdn-tracking-statistics" data-mod="popu_387" data-poputype="feed"  data-feed-show="false"  data-dsm="post">
                <dd>
                    <h2><a href="/yu422560654/article/details/7176596"  target="_blank" strategy="BlogCommendFromCsdn_7">每天一道面试题，为今年找工作早做准备！笨鸟先飞，哈哈(2012年1月篇) .</a></h2>
                    <div class="summary">
                        1、IBM面试题：平面上画1999条直线，最多能将平面分成多少部分？
分析：
没有直线时有一个空间；（1）
1条直线时，这条这些可以将这个空间分成两个；（1+1）
2条直线时，第二条直线可以和...
                    </div>
                    <ul>
                        <li class="avatar_img"><a href="http://blog.csdn.net/yu422560654" target="_blank" strategy="BlogCommendFromCsdn_7"><img src="http://avatar.csdn.net/8/5/F/2_yu422560654.jpg" alt="yu422560654" title="yu422560654"></a></li>
                        <li class="user_name"><a href="http://blog.csdn.net/yu422560654">yu422560654</a></li>
                        <li class="time">2012-01-04 22:14</li>
                        <li class="visited_num"><i class="icon iconfont icon-read"></i><span>2067</span></li>
                    </ul>
                </dd>
            </dl>
            
            <dl class="clearfix csdn-tracking-statistics" data-mod="popu_387" data-poputype="feed"  data-feed-show="false"  data-dsm="post">
                <dd>
                    <h2><a href="/tom555cat/article/details/17010169"  target="_blank" strategy="BlogCommendFromCsdn_8">为面试做准备之计数排序</a></h2>
                    <div class="summary">
                        计数排序
#include 

using namespace std;

const int MAXN = 100000;
const int k = 1000;

int a[MAXN], c[...
                    </div>
                    <ul>
                        <li class="avatar_img"><a href="http://blog.csdn.net/tom555cat" target="_blank" strategy="BlogCommendFromCsdn_8"><img src="http://avatar.csdn.net/9/2/C/2_tom555cat.jpg" alt="tom555cat" title="tom555cat"></a></li>
                        <li class="user_name"><a href="http://blog.csdn.net/tom555cat">tom555cat</a></li>
                        <li class="time">2013-11-28 18:40</li>
                        <li class="visited_num"><i class="icon iconfont icon-read"></i><span>499</span></li>
                    </ul>
                </dd>
            </dl>
            
            <dl class="clearfix csdn-tracking-statistics" data-mod="popu_387" data-poputype="feed"  data-feed-show="false"  data-dsm="post">
                <dd>
                    <h2><a href="/hqkls/article/details/20729423"  target="_blank" strategy="BlogCommendFromCsdn_9">为面试做准备之深度解析Activity生命周期（01）</a></h2>
                    <div class="summary">
                        本系列是我面试的时候面试官问我的问题，我在这儿写下来，希望帮助更多的人。


说来惭愧，做了android一年多面试官问我activity生命周期我居然不能详细的说出来，不能说出来就去了解透彻呗...
                    </div>
                    <ul>
                        <li class="avatar_img"><a href="http://blog.csdn.net/shiwenping11" target="_blank" strategy="BlogCommendFromCsdn_9"><img src="http://avatar.csdn.net/C/8/9/2_shiwenping11.jpg" alt="shiwenping11" title="shiwenping11"></a></li>
                        <li class="user_name"><a href="http://blog.csdn.net/shiwenping11">shiwenping11</a></li>
                        <li class="time">2014-03-07 21:03</li>
                        <li class="visited_num"><i class="icon iconfont icon-read"></i><span>825</span></li>
                    </ul>
                </dd>
            </dl>
            

	   

            

            
        </div>
    </main>
    <aside>
        <div class="right_box user_info">
            <dl class="inf_bar clearfix">
                <dt class="csdn-tracking-statistics" data-mod="popu_381">
                    <a href="http://blog.csdn.net/e7SFd9w7T0c1W" target="_blank">
                        <img src="http://avatar.csdn.net/0/F/D/1_e7sfd9w7t0c1w.jpg" class="avatar_pic">
                    </a>
                    <span class="medals" title="">
                <svg class="icon" aria-hidden="true">
                    
                </svg>
              </span>
                </dt>
                <dd>
                    <h3 class="csdn-tracking-statistics"  data-mod="popu_380"><a href="http://blog.csdn.net/e7SFd9w7T0c1W" target="_blank" id="uid">e7SFd9w7T0c1W</a></h3>
                    <span  class="csdn-tracking-statistics" data-mod="popu_379"><a class="btn btn-redborder-small "  id="span_add_follow" target="_self">＋关注</a></span>
                </dd>
            </dl>
            <div class="inf_number_box clearfix">
                <dl>
                    <dt>原创</dt>
                    <dd>0</dd>
                </dl>
                <dl>
                    <dt>粉丝</dt>
                    <dd id='fan'>0</dd>
                </dl>
                <dl>
                    <dt>喜欢</dt>
                    <dd>0</dd>
                </dl>
								 <dl>
              <dt>码云</dt>
              <dd>&nbsp;</dd>
            </dl>

            </div>
	    <div class="writings">
              <div class="public_signal clearfix">
                <h3>他的最新文章</h3>
                <a href="http://blog.csdn.net/e7SFd9w7T0c1W" target="_blank" class="more_z"><span>更多文章</span></a>
              </div>
                <ul class="inf_list clearfix csdn-tracking-statistics" data-mod="popu_382">
                    
                    <li class="clearfix">
                      
                        <a href="/e7sfd9w7t0c1w/article/details/78863494" target="_blank">这个专业的应届生火了！年薪50万，没出校门就被挖走</a>
                    </li>
                    
                    <li class="clearfix">
                      
                        <a href="/e7sfd9w7t0c1w/article/details/78863493" target="_blank">使用分层实现业务处理</a>
                    </li>
                    
                    <li class="clearfix">
                      
                        <a href="/e7sfd9w7t0c1w/article/details/78863492" target="_blank">招聘黑话大全，能听懂证明你是历经磨难的老司机</a>
                    </li>
                    
                </ul>
            </div>
        </div>
        <div class="extension_other csdn-tracking-statistics" data-mod="popu_389">
						<!--u3032528-->
			<div class="flashrecommend">

<!-- 请置于所有广告位代码之前 -->
<script src="http://dup.baidustatic.com/js/dm.js"></script>
           
<!-- 广告位：PC端-博客详情页右侧视窗1（feed流）-300*250 -->
<script>
(function() {
    var s = "_" + Math.random().toString(36).slice(2);
    document.write('<div id="' + s + '"></div>');
    (window.slotbydup=window.slotbydup || []).push({
        id: '4770930',
        container: s,
        size: '300,250',
        display: 'inlay-fix'
    });
})();
</script>

		    </div>
        </div>

        
        <div class="fixRight">
            <div class="right_box padb0 csdn-tracking-statistics" data-mod="popu_391">
                <h3 class="tit"><span><em>在线课程</em></span></h3>
                <ul class="edu_li clearfix">
                  
                  <li>
                    <div>
                      <a href="http://edu.csdn.net/huiyiCourse/series_detail/74?utm_source=blog7" target="_blank">
                        <img src="https://img-bss.csdn.net/201712141002463356.png" alt="MySQL在微信支付下的高可用运营" title="MySQL在微信支付下的高可用运营">
                      </a>
                    </div>
                    <div>
                      <p><a href="http://edu.csdn.net/huiyiCourse/series_detail/74?utm_source=blog7" target="_blank">MySQL在微信支付下的高可用运营</a></p>
                      <p>讲师：莫晓东</p>
                    </div>
                  </li>
                  
                  <li>
                    <div>
                      <a href="http://edu.csdn.net/huiyiCourse/series_detail/73?utm_source=blog7" target="_blank">
                        <img src="https://img-bss.csdn.net/201712140951431569.png" alt="容器技术在58同城的实践" title="容器技术在58同城的实践">
                      </a>
                    </div>
                    <div>
                      <p><a href="http://edu.csdn.net/huiyiCourse/series_detail/73?utm_source=blog7" target="_blank">容器技术在58同城的实践</a></p>
                      <p>讲师：姚远</p>
                    </div>
                  </li>
                  
                </ul>
            </div>
			<!--u3032529-->
            <!-- <div class="extension_other csdn-tracking-statistics baidu_box" data-mod="popu_395">
								
                <script type="text/javascript" src="http://mpb1.iteye.com/cxpdpmumfaedgm.js"></script>
            </div> -->
			<div class="extension_other csdn-tracking-statistics bottomRcom" data-mod="popu_389" style="position:absolute;z-index:-5;opacity:0;pointer-events:none">
						<!--u3032528-->
				<div class="flashrecommend">
				<script type="text/javascript" src="http://mpb1.iteye.com/bwocoltlyzdec.js"></script>
				</div>
			</div>
        </div>
		<div class="user-hotArticle">
          <h3>热门文章</h3>
          <ul class="hotArticle-list csdn-tracking-statistics" data-mod="popu_521">
 
            <li>
              <a href="/e7sfd9w7t0c1w/article/details/78863450">刚收到了Facebook的Offer，我是这样为面试做准备的？</a>
              <div class="read list-left"><i class="icon iconfont icon-read"></i><span>29</span></div>
            </li>
 
            <li>
              <a href="/e7sfd9w7t0c1w/article/details/78863482">《程序员非正式生存指南》</a>
              <div class="read list-left"><i class="icon iconfont icon-read"></i><span>19</span></div>
            </li>
 
            <li>
              <a href="/e7sfd9w7t0c1w/article/details/78863485">关于表单验证相关语句的整理</a>
              <div class="read list-left"><i class="icon iconfont icon-read"></i><span>18</span></div>
            </li>
 
            <li>
              <a href="/e7sfd9w7t0c1w/article/details/78863478">Mysql字符集设置</a>
              <div class="read list-left"><i class="icon iconfont icon-read"></i><span>16</span></div>
            </li>
 
            <li>
              <a href="/e7sfd9w7t0c1w/article/details/78863494">这个专业的应届生火了！年薪50万，没出校门就被挖走</a>
              <div class="read list-left"><i class="icon iconfont icon-read"></i><span>16</span></div>
            </li>
 
          </ul>
        </div>


    </aside>
</div>

<div class="left_fixed">
      <div class="left_show_button">
        <span>
          <i class="icon iconfont icon-youjiantou"></i>
        </span>
      </div>
    <ul class="left_menu">

        <li>
            <button class="left-fixed-btn btn-like csdn-tracking-statistics" data-mod="popu_373" target="_self">
                <a href="javascript:void(0);" class="iconbox border_red"><i class="icon iconfont icon-dianzan"></i></a>
				<a class="txt" href="javascript:void(0);" >0</a>
            </button>
        </li>
		<li id="blog_artical_directory">
            <button class="left-fixed-btn left_menu_btn csdn-tracking-statistics" data-mod="popu_372" target="_self">
                <a href="javascript:void(0);" class="iconbox border_black"><i class="icon iconfont icon-mulu"></i></a>
            </button>
        </li>
        <li class="menu_con">
            <div class="list_father">
                <div class="arr_box">
                    <button class="btn-noborder arr-btn scroll-down  left_scroll_down"><i class="icon iconfont icon-xiajiantou"></i></button>
                    <button class="btn-noborder arr-btn scroll-up left_scroll_top"><i class="icon iconfont icon-shangjiantou"></i></button>
                </div>
                <div class="arr"></div>
                <div id="csdnBlogDir"></div>
            </div>
        </li>
        <li>
            <button class="left-fixed-btn csdn-tracking-statistics" data-mod="popu_374"  id="com-quick-collect" target="_self">
                <a href="javascript:void(0);"  class="iconbox border_purple"><i class="icon iconfont icon-shoucang"></i></a>
    
            </button>
        </li>
		<li>
          <button class="left-fixed-btn btn-pinglun csdn-tracking-statistics"" data-mod="popu_544" >
            <a class="iconbox border_purple"><i class="icon iconfont icon-pinglun"></i></a>
          </button>
        </li>
        <li id="share_box">
            <button class="left-fixed-btn  csdn-tracking-statistics"  data-mod="popu_375" target="_self">
                <a href="javascript:void(0);"  class="iconbox border_orange"><i class="icon iconfont icon-fenxiang"></i></a>
            </button>
            <div class="bdsharebuttonbox csdn-tracking-statistics" data-mod="popu_172">
                <div class="outside">
                    <span class="iconbox border_red2"><i class="icon iconfont icon-xinlang"></i></span>
                    <a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"> </a>
                </div>
                <div class="outside">
                    <span class="iconbox border_green"><i class="icon iconfont icon-weixin"></i></span>
                    <a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信"> </a>
                </div>
                <div class="outside">
                    <span class="iconbox border_blue"><i class="icon iconfont icon-QQ"></i></span>
                    <a href="#" class="bds_qzone" data-cmd="qzone" title="分享到QQ空间"> </a>
                </div>
            </div>
        </li>
    </ul>
</div>
<div class="right_fixed">
  <div class="r_ico">
	<i class="icon iconfont icon-jubao"></i>
	<span class="txt" id="reportBtn">内容举报</span>
  </div>
  <div class="returnTop">
   <i class="icon iconfont icon-fanhuidingbu"></i>
   <span>返回顶部</span>
 </div>
</div>
<div id="pop_win"></div>
<div id="popup_mask"></div>
<div class="pop_CA_cover" ></div>
<div class="pop pop_CA" >
    <div class="CA_header">
        收藏助手
        <span class="cancel_icon"  id="fapancle" ></span>
    </div>
    <iframe src="" id="collectIframe" frameborder="0" width="100%" height="360"  scrolling="no" ></iframe>
</div>
<!--举报-->
<div id="report_dialog" style="top: 250px; left: 343.5px;"><div id="panel_report">
    <div class="panel_head">不良信息举报</div>
    <form method="post" id="frmReport" class="panel_body">
        <table border="0" cellpadding="0" cellspacing="4" class="pop_table">
            <tbody><tr><td colspan="2">您举报文章：<a href="http://blog.csdn.net/raintungli/article/details/76583070" target="_blank">深度学习：神经网络中的前向传播和反向传播算法推导</a></td></tr>
            <tr>
                <th style="width:60px;">举报原因：</th>
                <td id="panel_reporttype">
                    <label><input type="radio" class="report_type" id="report_sex" name="report_type" value="1">色情</label>
                    <label><input type="radio" class="report_type" id="report_Politics" name="report_type" value="2">政治</label>
                    <label><input type="radio" class="report_type" id="report_copy" name="report_type" value="3">抄袭</label>
                    <label><input type="radio" class="report_type" id="report_ad" name="report_type" value="4">广告</label>
                    <label><input type="radio" class="report_type" id="report_want" name="report_type" value="5">招聘</label>
                    <label><input type="radio" class="report_type" id="report_call" name="report_type" value="6">骂人</label>
                    <br>
                    <label><input type="radio" class="report_type" id="report_other" name="report_type" value="7">其他</label>
                    <input type="text" name="report_other_content" id="report_other_content" maxlength="30" style="display: none;">
                </td>
            </tr>
            <tr id="panel_originalurl" style="display: none;">
                <th>原文地址：</th>
                <td>
                    <input id="originalurl" value="http://" name="originalurl" type="text" style="width: 90%;">
                </td>
            </tr>
            <tr>
                <th id="sp_reason">原因补充：</th>
                <td>
                    <textarea id="report_description" style="width: 300px;" rows="3" name="report_description"></textarea>
                    <p id="sp_n" style="color:#999;margin:0px;padding:0px;">(最多只允许输入30个字)</p>
                </td>
            </tr>
            <tr>
                <td></td>
                <td>
                    <input id="btnSubmitReport" name="submit" type="image" align="middle" class="btn_1" src="http://static.blog.csdn.net/images/btn_submit.jpg">
                    <span style="padding-left:20px;"></span>
                    <img id="btnCloseReportDialog" src="http://static.blog.csdn.net/images/btn_cancel.jpg" align="middle">
                    <div id="error" style="color: Red">
                    </div>
                </td>
            </tr>
            </tbody></table>
    </form>
</div>
    <script language="javascript" type="text/javascript">
        var isComment=0;
        //显示隐藏地址
        $(function () {
            if(isComment){
                $("#report_description").attr("disabled",true);
                $("#sp_n").hide();
                $("#sp_reason").html("评论内容：");
            }
            $(".report_type").click(function () {
                $("#panel_originalurl,#report_other_content").hide();
                switch ($(this).val()) {
                    case '3':
                        $("#panel_originalurl").show();
                        $("#originalurl").focus();
                        break;
                    case '7':
                        if(isComment){
                            $("#report_other_content").show().focus();
                        }
                        break;
                }

            });

            $("#frmReport").submit(function () {
                if (!currentUserName) {

                    if (confirm("您的操作必须登录，是否登录？")) {
                        location.href = "http://passport.csdn.net/account/login?from=" + encodeURIComponent(location.href);
                        return false;
                    }
                    return false;
                }

                var reportType = $("input[name=report_type]:checked").val();
                if(!reportType){
                    alert("请选择举报原因！");
                    return false;
                }
                var otherInfo = "";
                switch (reportType) {
                    case '3':
                        otherInfo = $("#originalurl").val();
                        if (otherInfo == ""||otherInfo=="http://") {
                            alert("举报抄袭必须提供原创文章地址！");
                            $("#originalurl").focus();
                            return false;
                        } else if(!checkeURL(otherInfo)) {
                            alert("请输入正确的原创文章地址！");
                            $("#originalurl").focus();
                            return false;
                        }
                        break;
                    case '7':
                        otherInfo = $("#report_other_content").val();
                        if (isComment && !otherInfo) {
                            alert("请填写举报的具体原因！");
                            $("#report_other_content").focus();
                            return false;
                        }
                        if(!isComment){
                            if(!$("#report_description").val()){
                                alert("请填写举报的具体原因！");
                                $("#report_description").focus();
                                return false;
                            }
                        }
                        break;
                }
                if(!isComment){
                    if($("#report_description").val().length>30){
                        alert("举报原因最多只允许输入30个字！");
                        return false;
                    }
                }
                nowTime = {
                  year: new Date().getFullYear(),
                  month: parseInt(new Date().getMonth())+1,
                  day: new Date().getDate(),
                  hours: parseInt(new Date().getHours()),
                  minutes: parseInt(new Date().getMinutes()),
                  seconds: parseInt(new Date().getSeconds())
                }
                var data = {
                    articleId: fileName,
                    commentId: 0,
                    reportType: reportType,
                    originalurl: $("#originalurl").val(),
                    report_other_content: $("#report_other_content").val(),
                    report_description: $("#report_description").val(),
                    currentUserName: currentUserName,
                    updatetime: nowTime.year+'/'+nowTime.month+'/'+nowTime.day+' '+ nowTime.hours+':'+nowTime.minutes+':'+seconds,
                    blogUser: username
                };
                if(!isComment){//如果是举报文章
                    data.report_other_content = data.report_description;
                    // data.report_description = "1. 神经网络这是一个常见的神经网络的图：这是一个常见的三层神经网络的基本构成，Layer L1是输入层，Layer L2是隐含层";
                }

                $.post(blog_address + "/common/report?id="+fileName+"&t=2", data, function (data) {
                    if (data.result == 1){
                        SetError("感谢您的举报，我们会尽快审核！");
                    }else{
                        if (data.content) alert(data.content);
                    }

                });
                return false;
            });

            $("#btnCloseReportDialog").click(function () {
                CloseDiv();
            });

        });

        //提示后关闭方法
        function SetError(error) {
            $("#btnCloseReportDialog").trigger("click");
            alert(error);
            CloseDiv();
        }

        //关闭方法
        function CloseDiv() {

            $.removeMask();
            $("#report_dialog").hide();
            return false;
        }

        //验证url
        function checkeURL(url){
            return /^http(s)?:\/\/([\w-]+\.)+[\w-]+/i.test(url);
        }

    </script>
</div>

<script src="http://c.csdnimg.cn/public/common/libs/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<script type="text/javascript" src="http://static.blog.csdn.net/public/res/bower-libs/MathJax/MathJax.js?config=TeX-AMS_HTML"></script>
<script type="text/javascript" src="http://passport.csdn.net/content/loginbox/login.js"></script>

<script type="text/javascript" src="http://static.blog.csdn.net/Skin/skin3-template/js/blog_ver.js?v=`.044"></script>
<script type="text/javascript" src="http://static.blog.csdn.net/Skin/skin3-template/js/skin2017.js?v=2017.044"></script>
<script type="text/javascript" src="http://static.blog.csdn.net/scripts/cnick.js"></script>

    <script src="http://c.csdnimg.cn/public/common/append_mark/appendMark.min.js?v=5.00.40" type="text/javascript"></script>
	<script type="text/javascript">
	  appendMark($('.recommend_list').children('a').find('dt'),$('.extension_other'))
	</script>

<script>window._bd_share_config = { "common": { "bdSnsKey": {}, "bdText": "", "bdMini": "1", "bdMiniList": false, "bdPic": "", "bdStyle": "0", "bdSize": "16" }, "share": {} }; with (document) 0[(getElementsByTagName('head')[0] || body).appendChild(createElement('script')).src = 'http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion=' + ~(-new Date() / 36e5)];</script>
<script type="text/javascript" >
    if($(".article_collect li").length==1){$(".article_collect").hide();}
    if($(".article_tags li").length==1){$(".article_tags").hide();}
    $(".edit a").attr("href","http://write.blog.csdn.net/postedit/"+fileName);
    $.each($(".edu_li a"),function(){$(this).attr("href",$(this).attr("href").replace("blog7","blog9"))});
    new CNick('#uid').showNickname();
if($("#fan").html()=="")
{
$("#fan").html(0);	
}

	var blogCustomType ='{customtype}';
                
        $("#custom"+blogCustomType).show();
</script>
</body>

<script  type="text/javascript">
    var fromjs=$("#fromjs");
    if(fromjs.length>0)
    {                  
        $("#fromjs .markdown_views pre").addClass("prettyprint");       
        prettyPrint();

        $('pre.prettyprint code').each(function () {
            var lines = $(this).text().split('\n').length;
            var $numbering = $('<ul/>').addClass('pre-numbering').hide();
            $(this).addClass('has-numbering').parent().append($numbering);
            for (i = 1; i <= lines; i++) {
                $numbering.append($('<li/>').text(i));
            };
            $numbering.fadeIn(1700);
        });

        $('.pre-numbering li').css("color","#999");             
    }

    $(function(){
        setTimeout(function(){
            $(".math").each(function(index,value){$(this).find("span").last().css("color","#fff"); })
        },500);         
       

    });

    setTimeout(function () {
        $(".toc a[target='_blank']").attr("target", "");
    }, 500);

</script>
</html>

